<tagLib name="html" />
<include file="Public:header" />
<load href ="__PUBLIC__/Js/common.js" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/editor/kindeditor.js"></script>
<load href ="__PUBLIC__/Js/jquery-1.4.4.min.js" />
<script type="text/javascript">
    KE.show({
        id : 'traffic_1'
   });
   KE.show({
        id : 'community_1'
   });
   KE.show({
        id : 'around_1' //TEXTAREA输入框的ID
   });
   KE.show({
        id : 'otherinfo_1' //TEXTAREA输入框的ID
   });
   function addRowplusPrice(tablename){
				var tablename = tablename;
				var trstr = jQuery("#"+tablename).find("tr").eq(1).html();
				var pattern = /value=[a-zA-Z0-9_]*/ig;
				trstr = trstr.replace(pattern,'');
				trstr = "<tr>"+trstr+"</tr>";
				jQuery('#'+tablename).append(trstr);
			}
 function removerow(obj){
				var objnum = jQuery(obj).parent().parent().parent().children().size();
				if(objnum>2)
				{
					jQuery(obj).parent().parent().remove();
				}
  }
   function addRowplus(tablename){
				var tablename = tablename;
				var trstr = jQuery("#"+tablename).find("tr").eq(0).html();
				var pattern = /value=[a-zA-Z0-9_]*/ig;
				trstr = trstr.replace(pattern,'');
				trstr = "<tr>"+trstr+"</tr>";
				jQuery('#'+tablename).append(trstr);
			}
</script>
<div id="main" class="main" >
<div class="content">
<div class="title">修改房型 [ <a href="javascript:history.back()">返回列表</a> ]</div>
<form method='post' id="form1" action="__URL__/update/" enctype="multipart/form-data">
<table cellpadding=3 cellspacing=3>
<tr>
	<td></td>
	<td style="float:right">
            <input type="submit" value="更 新" class="small submit">
            <input type="reset" class="reset imgButton" onclick="javascript:history.back()" value="返回" >
	</td>
</tr>
<tr><td colspan="2"><font color="#174B73"> <b>     {$vo.hotel_id|getModelName=Hotel} >> {$vo.name} </b></font></td></tr>
<tr>
	<td class="tRight" >房型名称：</td>
	<td class="tLeft" >
            <input type="text" class="medium bLeftRequire"  check='Require' warning="房型名不能为空" id="name" name="name" value="{$vo.name}">
        </td>
</tr>
<tr>
	<td class="tRight" >所属公寓：</td>
	<td class="tLeft" >
            <select name="hotel_id">
                <volist name="hotel" id="dis">
                    <option value="{$dis.id}" <eq name="vo.hotel_id" value="$dis.id">selected</eq> >{$dis.name}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >户型：</td>
	<td class="tLeft" >
            <select name="layout">
                <volist name="layout" id="la">
                <option value="{$key}" <eq name="vo.layout" value="$key">selected</eq> >{$la}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >常规价：</td>
	<td class="tLeft" >
            日租价<input type="text" name="day_price" value="{$vo.day_price}" class="small">
            周租价<input type="text" name="week_price" value="{$vo.week_price}" class="small">
            月租价<input type="text" name="month_price" value="{$vo.month_price}" class="small">
        </td>
</tr>
<tr>
	<td class="tRight" >自定义价格：</td>
	<td class="tLeft" >
            <input type="text" name="custom_price" value="{$vo.custom_price}" class="large"> (如月，季，年等的价格)
        </td>
</tr>
<tr>
    <td class="tRight" >面积：</td>
	<td class="tLeft" >
            <input type="text" class="large bLeft" name="area" value="{$vo.area}">
        </td>
</tr>
<tr>
    <td class="tRight" >装修程度：</td>
	<td class="tLeft" >
            <select name="fitment">
                <option value="2" <eq name="vo.fitment" value="2">selected</eq> >精装</option>
                <option value="1" <eq name="vo.fitment" value="1">selected</eq> >普通</option>
                <option value="3" <eq name="vo.fitment" value="3">selected</eq> >豪华</option>
            </select>
        </td>
</tr>
<tr>
    <td class="tRight" >物业类型：</td>
	<td class="tLeft" >
           <select name="prop_type">
                <option value="1" <eq name="vo.prop_type" value="1">selected</eq> >住宅</option>
                <option value="2" <eq name="vo.prop_type" value="2">selected</eq> >酒店</option>
                <option value="3" <eq name="vo.prop_type" value="3">selected</eq> >公寓</option>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >配套设施：</td>
	<td class="tLeft" >
            <input type="checkbox" name="is_ac" <eq name="vo.is_ac" value="1">checked</eq> >空调
            <input type="checkbox" name="is_tv" <eq name="vo.is_tv" value="1">checked</eq> >彩电
            <input type="checkbox" name="is_freezer" <eq name="vo.is_freezer" value="1">checked</eq> >冰箱
            <input type="checkbox" name="is_washing" <eq name="vo.is_washing" value="1">checked</eq> >洗衣机
            <input type="checkbox" name="is_calorifier" <eq name="vo.is_calorifier" value="1">checked</eq> >热水器
            <input type="checkbox" name="is_microwave" <eq name="vo.is_microwave" value="1">checked</eq> >微波炉
            <input type="checkbox" name="is_internet" <eq name="vo.is_internet" value="1">checked</eq> >宽带
            <input type="checkbox" name="is_dvd" <eq name="vo.is_dvd" value="1">checked</eq> >DVD
            <input type="checkbox" name="is_kitchen" <eq name="vo.is_kitchen" value="1">checked</eq> >厨房
            <input type="checkbox" name="is_bathroom" <eq name="vo.is_bathroom" value="1">checked</eq> >独立卫生
            <input type="checkbox" name="is_wc" <eq name="vo.is_wc" value="1">checked</eq> >合用卫生
        </td>
</tr>
<tr>
	<td class="tRight" >产品图片：</td>
	<td class="tLeft" bgcolor="whiteSmoke">
            默认图片<table><tr><td><input type="file" class="large bLeft" name="logo"></td></tr>
                    <tr><td> <notempty name="logo_photo"><img src="{$logo_photo}" alt="logo图片" height="60%" width="60%" /></notempty></td></tr>
                </table>

            其他图片：<table id="attach_pic">
		<tr class="firstline">
                    <td width="60%"><input type="file" class="large bLeft" name="attach[]">
                    排序:<input id="" type="text" name="pic_sort[]" />
</td>
                    <td><img src="__PUBLIC__/Images/publish_x.png" alt="删除" onclick="removerow(this);"/></td>
                </tr>
                <volist name="attach_photo" id="at">
		  <tr>
		    <td width="60%">
		      <img src="__ROOT__{$at.path|substr=###,1}thumb_{$at.filename}" alt="图片" />{$at.path}{$at.filename}
               排序:<input id="" type="text" name="old_sort[]" value="{$at.sort}" />
		      <input name="old_attach[]" type="hidden" value="{$at.id}"/>
		    </td>
		    <td><img src="__PUBLIC__/Images/publish_x.png" alt="删除" onclick="removerow(this);"/></td>
		 </tr>
		</volist>
            </table>
            <a href="javascript:void(0)" onclick="addRowplus('attach_pic');" class="addMore">添加更多</a>
        </td>
</tr>
<tr>
	<td class="tRight" >预订状态：</td>
	<td class="tLeft" ><input type="text" class="large bLeft" name="is_free" value="{$vo.is_free}"></td>
</tr>

<tr>
	<td class="tRight" >预订要求：</td>
	<td class="tLeft" ><input type="text" class="large bLeft" name="requirement" value="{$vo.requirement}"></td>
</tr>
<tr>
	<td class="tRight" >联系方式：</td>
	<td class="tLeft" >
            <textarea class="large bLeft"  id="traffic_1" name="contact" style="width:650px;height:200px;" >{$vo.contact}</textarea>
        </td>
</tr>
<tr>
	<td class="tRight" >房屋说明：</td>
	<td class="tLeft" >
            <textarea class="large bLeft"  id="around_1" name="description" style="width:650px;height:200px;" >{$vo.description}</textarea>
        </td>
</tr>
<tr>
	<td class="tRight" >配套服务：</td>
	<td class="tLeft" >
            <textarea class="large bLeft"  id="community_1" name="service" style="width:650px;height:200px;" >{$vo.service}</textarea>
        </td>
</tr>
<tr>
	<td class="tRight" >补充说明：</td>
	<td class="tLeft" >
           <textarea class="large bLeft" id="otherinfo_1" name="otherinfo" style="width:650px;height:200px;">{$vo.otherinfo}</textarea>
        </td>
</tr>
<tr>

    <td class="tRight" >排序：</td>
	<td class="tLeft" ><input type="text" class="medium bLeft" name="sort" value="{$vo.sort}"></td>
</tr>
<tr>
    <td class="tRight">SEO标题优化：</td>
    <td class="tLeft">
            标题：<input type="text" name="meta_title" value="{$vo.meta_title}" class="huge"> <br/>
            关键词：<input type="text" name="meta_keywords" value="{$vo.meta_keywords}" class="huge"><br/>
            描述：<input type="text" name="meta_description" value="{$vo.meta_description}" class="huge">
        </td>
</tr>
<tr>
	<td class="tRight">状态：</td>
	<td class="tLeft"><SELECT class="small bLeft"  name="status">
            <option value="1" <eq name="vo.status" value="1">selected</eq> >启用</option>
            <option value="0" <eq name="vo.status" value="0">selected</eq> >禁用</option>
	</SELECT>
        </td>
</tr>

<tr>
	<td></td>
	<td class="center">
            <input type="hidden" name="id" value="{$vo.id}" >
            <input type="submit" value="更 新" class="small submit">
            <input type="reset" class="reset imgButton" onclick="javascript:history.back()" value="返回" >
	</td>
</tr>
</table>
</form>
</div>
</div>
